package com.kgdev.cweb.beans.prod.impl;

import javax.ejb.LocalBean;
import javax.ejb.Stateless;

import com.kgdev.cweb.beans.AbstractEJBBean;
import com.kgdev.cweb.beans.prod.api.OrderDraftBeanLocal;
import com.kgdev.cweb.entities.prod.managed.OrderDraft;

/**
 * Session Bean implementation class OrderBean
 */
@Stateless
@LocalBean
public class OrderDraftBean extends AbstractEJBBean<OrderDraft, Integer>
		implements OrderDraftBeanLocal {

	public OrderDraftBean() {
		super(OrderDraft.class);
	}

	@Override
	public void remove(Integer orderDraftId) {
		OrderDraft orderDraft = find(orderDraftId);
		if (orderDraft != null) {

			entityManager.remove(orderDraft);
		}
	}

}
